<#if serviceRoles['REDIS_SERVER']?size gt 1>
    <#assign RedisServers=[]>
    <#list serviceRoles['REDIS_SERVER'] as role>
        <#list [7001,7002,7003] as port>
            <#assign formattedPort = port?string("0")>
            <#assign RedisServers += ["{\"instance\": " + "\"" + formattedPort + "\",\"group\":" + "\"" + role.hostname + "\", \"port\":" + formattedPort + ",\"server\":" + "\"" + role.hostname + "\"}"]>
        </#list>
    </#list>
</#if>

{"master_slave_sms": "0,0", "RedisStatsServer": {"port": ${conf['redis.listeners.port']}, "server": "127.0.0.1"}
, "sms_alert": "10.110.17.239:9999", "DataStoreType": "redis", "RedisServers": [${RedisServers?join(",")}]}